package com.xmall.define.request.es;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

@Data
public class EsAttr implements Serializable {

    @NotNull(message = "属性ID不能为空")
    private Long attrId;

    @NotNull(message = "属性值不能为空")
    @Size(min = 1, message = "属性值不能为空")
    private List<String> attrValue;
}
